src1=testExec.c
des1=testExec.exe 
src2=mycplusplus.cc
des2=mycplusplus.exe
# 设置伪目标，可以一次性执行生成多份可执行程序：
.PHONY:all
all:$(des1) $(des2)
$(des1):$(src1)
	@gcc $^ -o $@ -std=c99 
	@echo "compile $^ to $@"
$(des2):$(src2)
	@g++ $^ -o $@ -std=c++11 
	@echo "compile $^ to $@"
.PHONY:clean
clean:
	@rm -rf $(des1) $(des2) 
	@echo "remove $(des1) $(des2)"
